-- GENERATED SPELL FOR [Commander Dawnforge] --


function spell0_19831(pUnit, Event) --@Forceful Cleave,n/a--
pUnit:FullCastSpellOnTarget(35473,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19831', 0, 1)
end

function spell1_19831(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19831', 621, 1)
end

function Sorts_19831(pUnit, Event)
local choix_sorts_19831 = math.random(0, 1)
if choix_sorts_19831 == 0 then
pUnit:RegisterEvent('spell0_19831', 1, 1)
end
if choix_sorts_19831 == 1 then
pUnit:RegisterEvent('spell1_19831', 1, 1)
end
end

function mob19831_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19831', math.random(1500, 3000), 1)
end

function mob19831_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19831_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19831_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19831, 1, 'mob19831_Action')
RegisterUnitEvent(19831, 2, 'mob19831_Leave')
RegisterUnitEvent(19831, 3, 'mob19831_Kill')
RegisterUnitEvent(19831, 4, 'mob19831_Die')
